package com.jackson0714.common.exception;

/**
  * @Description:业务逻辑相关异常类
  * @Version v1.0.0
  * @author zhangpeng148
  * @date 2021/8/6 15:40
  */
public class BusinessException extends RuntimeException{

    private int bCode;

    private String bMessage;

    public BusinessException(String message){
        super(message);
    }

    public BusinessException(int code,String message){
        this.bCode = code;
        this.bMessage = message;
    }

    public BusinessException(String message, Throwable cause) {
        super(message, cause);
    }

    public int getbCode() {
        return bCode;
    }

    public void setbCode(int bCode) {
        this.bCode = bCode;
    }

    public String getbMessage() {
        return bMessage;
    }

    public void setbMessage(String bMessage) {
        this.bMessage = bMessage;
    }
}
